package com.mdh.runerrands.dao;

import com.mdh.runerrands.pojo.Address;
import com.mdh.runerrands.pojo.BaseUser;
import org.apache.ibatis.annotations.Mapper;


import java.util.List;

@Mapper
public interface AddressDao {
    Address selectById(int id);
    boolean deleteById(int id);
    List<Address> selectByCustomerId(int customerId);
    List<Address> selectAllAddress();
    boolean insert(Address address);
    boolean update(Address address);
    boolean batchDelete(int ...ids);
    List<Address> queryPage(int page,int pageSize,String province,String city,String area);
    int selectCount(String province,String city,String area);
}
